﻿using System.ComponentModel;
using ZeroSum.Models;

namespace ZeroSum.Exceptions;

[Description("需要登录但未登录时抛出")]
public class NeedLoginException : BusinessException
{
    private NeedLoginException(string message) : base(message, ResponseStatus.NeedLogin)
    {
    }

    public static NeedLoginException Of(string message)
    {
        return new NeedLoginException(message);
    }
}